<?php
/**
 * Created by JetBrains PhpStorm.
 * User: admin
 * Date: 20.01.13
 * Time: 17:30
 * To change this template use File | Settings | File Templates.
 */

class Forum_Form_Post_Delete extends Zend_Form
{
  public function init()
  {
    $this
      ->setMethod("POST")
      ->setAttrib('name', 'forum_post_create')
      ->setAction(Zend_Controller_Front::getInstance()->getRouter()->assemble(array()));


    $submit = new Zend_Form_Element_Submit('submit');
    $submit->setLabel('Удалить');
    $this->addElement($submit);

    $cancel = new Zend_Form_Element_Submit('cancel');
    $cancel->setLabel('Отмена');
    $this->addElement($cancel);
  }
}